package com.atguigu.guli.service.edu.mapper;

import com.atguigu.guli.service.edu.entity.Course;
import com.atguigu.guli.service.edu.entity.form.CourseListQueryAll;
import com.atguigu.guli.service.edu.entity.form.CoursePublishVo;
import com.atguigu.guli.service.edu.entity.form.CourseQueryVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author atguigu
 * @since 2021-06-23
 */
@Component
public interface CourseMapper extends BaseMapper<Course> {

    List<CourseListQueryAll> QueryPageOtherFrom(Page<CourseListQueryAll> page, @Param("ew") QueryWrapper wrapper);

    CourseListQueryAll getCourseById(@Param("ew") QueryWrapper<CourseListQueryAll> wrapper);

    CourseQueryVo getCourseAllMcg(String courseId);
}
